package com.ruoyi.gt;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 感同
 *
 * @author ruoyi
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringCloudApplication
public class SlmmGtApplication
{

    @Bean
    public PasswordEncoder passwordEncoder()
    {
        return new BCryptPasswordEncoder();
    }
    public static void main(String[] args)
    {
        SpringApplication.run(SlmmGtApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  感同启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " ''-'森林秘密   `'-'    `-..-'              ");
    }
}
